<!DOCTYPE html>
<html>
<head><meta name="x-key" content="f10dd530ed68512466118c2be7d15c0f">
    <title>旋风捉妖记 - 小小驿站游戏平台</title>
    <meta name="viewport" content="width=device-width,user-scalable=no" />
    <meta charset="utf-8" />
    <meta name="author" content="tg" />
</head>
<style>
    html, body {
        background-color: #191919;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        text-align: center;
    }

    #loadicon {
        margin-top: 250px;
    }

    #orient {
        margin-top: 50px;
    }

    p {
        color: #FFFFFF;
        font-size: 24;
    }
</style>
<script src="js/Base64Images_min.js"></script>
<script src="js/jquery.min.js" language="JavaScript"></script>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<body onload="complete();">

    <div class="orient" id="orient"><p>请在竖屏情况下使用</p></div>
    <div id="loadicon"><img id="img1" /><br /><img id="img2" /><br /><img id="img3" /></div>
    <canvas id="gameCanvas" width="445" height="700"></canvas>
    <!--<div id="cou" style="width:320px;margin: 0 auto;"></div>3C2F3C" #191919  -->

    <script src="js/ping_tcss_ied.js"></script>
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?117a0ebb6002d985ae86a703dd85f08a";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
    <script>
        if (typeof (pgvMain) == 'function') pgvMain();
        //横屏提示
        function orientationChange() {
            if (window.orientation == 90 || window.orientation == -90) {
                document.getElementById("gameCanvas").style.display = "none"
                document.getElementById("orient").style.display = "block"
            } else {
                document.getElementById("gameCanvas").style.display = "block"
                document.getElementById("orient").style.display = "none"
            }
        }
        document.getElementById("orient").style.display = "none"
        orientationChange();
        window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", orientationChange, false);
        function trace(v) {
            //  console.log(v)
        }
        var ccConfig = {
            "debugMode": 0,
            "showFPS": false,
            "frameRate": 36,
            "id": "gameCanvas",
            "renderMode": 1,
            "engineDir": "./../",
            "modules": ["cocos2d"],
            "jsList": [
            ]
        }
        document["ccConfig"] = ccConfig;
        //document.getElementById("img1").src=cc._loaderImage;
        document.getElementById("img2").src = cc._loadingImage;
        document.getElementById("img3").src = cc.tgideasLogo;
        var GD = {}
        GD.GETNUM = 0;
        GD.SCORE = 0;
        GD.MAXHITUM = 0;
        GD.SHARE = "我在守护水晶时失败了，你来试试~";

        GD.MAXTIME = 60;
        GD.SOUND = false;
        GD.USETIME = 0;
        function complete() {
            orientationChange();
            document.getElementById("loadicon").style.display = "none";
            cc.game.run();
        }
    </script>

    <script src="js/cocos2dtgme.js"></script>
    <script src="js/app.js"></script>
	 <script language=javascript>
	 window.shareData = {
	    "imgUrl": "http://wx.iooook.com/game/xfzyj/title.png",
	    "timeLineLink": "http://wx.iooook.com/game/xfzyj/index.html",
	    "homeUrl":"http://wx.iooook.com/youxi",
	    "tTitle": "旋风捉妖记",
	    "tContent": "赶紧亮出你的大宝剑阻止那些丑逼打炮吧！"
	};
	var url = location.href;
    $.get("http://wx.iooook.com/WeiXin/SDKAction/JsBridge",{url:url},function(data){
        wx.config({
            appId : data.appId,
            timestamp : data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList : [
                "onMenuShareTimeline",
                "onMenuShareAppMessage"
            ]
        });
    });
	function goHome(){
		window.location = window.shareData.homeUrl;
	}
	function clickMore(){
	 	goHome();
	}
	function dp_share(){
        document.getElementById("share").style.display="";
		wx.ready(function (){
                wx.onMenuShareTimeline({
                    title: window.shareData.tTitle, // 分享标题
                    link: window.shareData.timeLineLink, // 分享链接
                    imgUrl: window.shareData.imgUrl, // 分享图标
                    success: function () {
                        // 用户确认分享后执行的回调函数
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });
                wx.onMenuShareAppMessage({
                    title: window.shareData.tTitle, // 分享标题
                    desc: window.shareData.tContent, // 分享描述
                    link: window.shareData.timeLineLink, // 分享链接
                    imgUrl: window.shareData.imgUrl, // 分享图标
                    type: '', // 分享类型,music、video或link，不填默认为link
                    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                    success: function () {
                        // 用户确认分享后执行的回调函数
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });
            });
	}
	function dp_Ranking(){
		//window.location=game9g.homeurl;
	}
	function showAd(){
		
	}
	function hideAd(){
	}
	function dp_submitScore(score,stitle){
		if(score>0){
		window.shareData.tTitle ="我在旋风捉妖记中守护水晶获得了"+score+"分和"+stitle+"徽章，你也来挑战一下吧!"; 
		window.shareData.tContent ="你在守护水晶时获得了"+score+"分和"+stitle+"徽章，快通知一下小伙伴吧！"; 
		}
	}

</script>
	<div style="display: none;" id="share">
        <img src="share.png" style="position: fixed; z-index: 9999; top: 0; right: 0; " ontouchstart="document.getElementById('share').style.display='none';"/>
	</div>
</body>
</html><!--[if !IE]>|xGv00|559093bacc5faaac5666858c7aaed8d7<![endif]-->